package com.editor.teste;

/*
import java.util.Date;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;

import com.portaria.model.Servidor;
import com.portaria.model.TipoServidor;



public class TestServidor {
	public static void main(String[] args) {
		

		EntityManagerFactory factory = Persistence.createEntityManagerFactory("PortariaPU");
		EntityManager manager = factory.createEntityManager();
		                
		EntityTransaction trx = manager.getTransaction();
		trx.begin();
		
		
		Servidor servidor = new Servidor();
		servidor.setCpf("712.258.258-98");
		servidor.setDataAdmissao(new Date());
		servidor.setEmail("maleta@gmail.com");
		servidor.setNome("maleta card");
		servidor.setPortaria("02/2010");
		servidor.setTipo(TipoServidor.SERVIDOR);
		servidor.setSiape("1798525");
		servidor.setTelefone("95 3238-1833");
		
		
		manager.persist(servidor);
		
		trx.commit();
		
	}
}
*/